home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Lengths
/
Modify
/
l-condense-range-section
< prev
next >
Wrap
Lisp/Scheme
|
1998-08-11
|
535b
|
23 lines
l-condense-range-section range section pattern
0-based
This function enables length-condense operations to be made on ranges in multiple lists or sections.
(setq len (qlength '((20-11011) (24-1131) (16-13) (20-14))))
(setq range
(p-select
'(0 2 3)
(pick-rnd1 .23 :content 2
(g-integer 0 (l-count :all :content len)))))
=> ((2 5) (0 2) (2 0))
internally to: ((2 5) (0 2) (0 2))
(l-condense-range-section range '(0 2 3) len)
=> ((1/20 1/20 -1/20 1/10) (1/24 1/24 1/8 1/24) (1/4) (1/4))